package com.example.lhsama.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @Date: 2021年09月19日 14:24
 * @Author: LHSAMA
 */
@Data
public class Member {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String password;
    private String phone;
    private String email;
    private String city;
    private Integer enable;
    private Integer deleted;
    private String img;

    @TableField(exist = false)
    private String enableStr;

    public String getEnableStr() {
        return enable==0?"禁用":"开启";
    }
}
